package com.cy.study.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cy.study.entity.MajorEntity;
import com.cy.study.mapper.MajorMapper;
import com.cy.study.service.MajorService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
@RequiredArgsConstructor
public class MajorServiceImpl extends ServiceImpl<MajorMapper, MajorEntity> implements MajorService {
    @Override
    public List<MajorEntity> getMajor() {
        List<MajorEntity> majorEntities = this.getBaseMapper().selectList(null);
        return majorEntities;
    }
}
